Page({
  data: {
    name: '李先生',
    storeName: '北京汽车郑州熙地港王府井体验店',
    carName: 'BJ60',
    phone: '12345678910',
    submitTime: '2025-06-06',
    src:'/images/BJ5.png'
  },

  onLoad(options) {
    debugger
    
    // 这里可以从缓存或接口获取预约信息
    if (options.name) {
      if(options.carName.includes('BJ30')){
        this.setData({src: '/images/BJ1.png'});
      } else if(options.carName.includes('全新BJ40')){
        this.setData({src: '/images/BJ2.png'});
      } else if(options.carName.includes('BJ60雷霆')){
        this.setData({src: '/images/BJ3.png'});
      } else if(options.carName.includes('BJ40增程')){
        this.setData({src: '/images/BJ4.png'});
      } else if(options.carName.includes('新X7')){
        this.setData({src: '/images/BJ5.png'});
      }
      this.setData({
        name: options.name,
        storeName: options.storeName,
        carName: options.carName,
        phone: options.phone,
        submitTime: options.submitTime
      });
    } else {
      // 通过接口获取新近一个的预约
      
    }
  }
});